//index.js
Component({
	properties: {
		propsJect: {
			type: Object,
			value: {}
		},
		xuanZeIndex: {
			type: Number,
			value: 0
		},
		selectIndex: {
			type: Number,
			value: 0
		},
		index: {
			type: Number,
			value: 0
		},
		danGeZhengQue: {
			type: Boolean,
			value: false
		},
	},
	data: {
		// 错误图片是否显示
		isCuowu: false,
		// 正确图片是否显示
		isZhengQue: false,
		// 背景颜色的设置
		isClass: ''
	},
	methods:{
		btnClikc() {
			if (this.data.xuanZeIndex == this.data.selectIndex) {
				this.triggerEvent('fatherClick', this.data.index)
			}
		}
	}
})
